
#import <UIKit/UIKit.h>

@interface UIView (XBKit)



///宽高 设置与获取
@property (assign, nonatomic) CGSize  size;
///原点 设置与获取
@property (assign, nonatomic) CGPoint point;

///宽 设置与获取
@property (assign, nonatomic) CGFloat width;
///高 设置与获取
@property (assign, nonatomic) CGFloat height;
///x轴 设置与获取
@property (assign, nonatomic) CGFloat x;
///y轴 设置与获取
@property (assign, nonatomic) CGFloat y;
///中心x 设置与获取
@property (assign, nonatomic) CGFloat centerX;
///中心y 设置与获取
@property (assign, nonatomic) CGFloat centerY;

/**
 *  设置圆角
 *
 *  @param size 圆角大小
 */
- (void)setRoundedcorners:(CGFloat)size;
/**
 *  设置圆角 默认5
 */
- (void)setRoundedcornersDefault;


/**
 设置 边线 默认 lightGrayColor 宽带 1
 */
- (void)setBorderDefault;


/**
 设置 边线

 @param borderColor 颜色
 @param borderWidth 宽度
 */
- (void)setBorderWithBorderColor:(UIColor *)borderColor andBorderWidth:(CGFloat)borderWidth;


/**
 将view 变成 图片

 @param theView view
 @return UIimage
 */
+ (UIImage *)getImageFromView:(UIView *)theView;

@end
